<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="MvcContrib.FluentHtml.ModelViewPage<List<Universum.Model.Domain.Article>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Universum - Search results
</asp:Content>
<asp:Content ID="BreadcrumbsContent" ContentPlaceHolderID="Breadcrumbs" runat ="server">
<%= Html.Breadcrumb().Home().AppendText("Search results").End() %>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
	<h2>
		Search results</h2>
	<%
	if (Model.Count == 0)
		{
			%>
			<h4>There are no result to display</h4>
			<%
		}
		else
		foreach (var item in Model)
	{ %>
	<div class="span-22 last">
		<div class="span-22 ">
			<h2>
				<em>
					<%= Html.Encode(item.Title) %></em></h2>
			<p>
				by
				<%= Html.Encode(item.Username) %>
			</p>
		</div>
		<div class="span-22">
			<%= item.Text %>
		</div>
	</div>
	<% } %>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptPlaceHolder" runat="server">
</asp:Content>
